#!/bin/sh

#cd src
#java -Djava.security.policy=server.policy -Djava.rmi.server.codebase="http://localhost:10080/classes/" -Djavax.net.ssl.trustStore=servertestkeys.ks server.MainServer 10080 . #|| exit 1
DIR=`pwd`
if [ $# -lt 2 ]
then
	echo "Usage ./server <password_keyStoreServer> <password_trustStoreClient>"
else
	cd src
	java -Djava.security.policy=server.policy -Djava.rmi.server.codebase="http://localhost:10080/classes/" -Djavax.net.ssl.keyStore=serverkeys.ks -Djavax.net.ssl.keyStorePassword=$1 -Djavax.net.ssl.trustStore=servertrust.ks -Djavax.net.ssl.trustStorePassword=$2 server.MainServer 10080 .
fi
